package com.configuration;

import com.netflix.loadbalancer.IRule;
import com.rule.CustomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;


/**
 * @description:
 * @author: sksun2
 * @create: 2023-09-28
 */
@Configuration
public class FeignConfiguration {
    @Bean
    @Primary
    public IRule loadBalancedRule() {
        return new CustomRule();
//        return new GrayRule();
    }

}
